package org.example.annotation;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Data
//对象名：db
@Service(value = "db")
public class DemoB {
    @Value("1")
    private Integer id;
    @Value("张三")
    private String name;
    @Value("女")
    private Character gender;
}
